from django import template
register = template.Library()


@register.inclusion_tag('admin/festivals/participant/participant_list.html')
def show_participants(participants):
    return {'participants': participants}


@register.inclusion_tag('admin/festivals/votes/vote_list.html')
def show_performances_pending_votes(user):
    from music_festivals.festivals.views import get_performances_pending_votes
    return {'performances_pending_votes': get_performances_pending_votes(user)}